import Vue from 'vue'
import App from './App'
import api from 'common/apihttp/'
import config from 'common/config.js'
//应用升级配置
const currentVersion = {
    id: 100
}
Vue.prototype.$current = currentVersion
Vue.prototype.$port = 3//端口号  1学生,2老师,3家长
Vue.prototype.$appType = 'alpha' //应用开发阶段  alpha:内测版 ,beta:公测版 ,rc:终测版   ,release:正式版
App.mpType = 'app'
Vue.config.productionTip = false
Vue.prototype.$zapi = api.setPath('ajaxUrl')
Vue.prototype.$gapi = api.setPath('mediaUrl');
Vue.prototype.$capi = api.setPath('courseUrl');
Vue.prototype.$qapi = api.setPath('qanswersUrl');
Vue.prototype.$zbapi = api.setPath('lessonUrl');
Vue.prototype.$kapi = api.setPath('serviceUrl');
Vue.prototype.$tapi = api.setPath('testUrl');
Vue.prototype.$papi = api.setPath('pagkageUrl');
Vue.prototype.$uapi = api.setPath('uploadUrl');
Vue.prototype.$napi = api.setPath('noteUrl');
Vue.prototype.$kbapi = api.setPath('courseTableUrl');
Vue.prototype.$mapi = api.setPath('memberUrl');
Vue.prototype.$sapi = api.setPath('shopUrl');
Vue.prototype.$qzapi = api.setPath('qzUrl');
Vue.prototype.$qstapi = api.setPath('qstUrl');
Vue.prototype.$japi = api.setPath('jgUrl');
Vue.prototype.$uploadApi = api.setPath('uploadUrl');
Vue.prototype.$wapi = api.setPath('workUrl');
Vue.prototype.sevenUrl = config.sevenUrl;
Vue.prototype.$domain = 'http://pay.zhizhuedu.net/api/v1/'
Vue.prototype.defimg = 'https://teacher-obj.oss-cn-beijing.aliyuncs.com/headportrait/202006/11/f4eff5a1e15d257d0f943af4e7084b69410.png';
Vue.prototype.Log = (...args) => {
	if (config.name != 'production') {
		console.log(JSON.stringify(args));
	}
}
Vue.prototype.$current = currentVersion
const app = new Vue({
	...App
})
app.$mount()

Vue.prototype.location_ = 'http://testqv1.qvnet.cn/index.php/'
Vue.prototype.mediaUrl = 'http://testobj1.qvnet.cn/index.php/'
Vue.prototype.noteUrl = 'http://api1.zhizhuedu.net.cn/note/';
